package com.guli.mall.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.PageUtils;
import com.guli.mall.pms.entity.AttrAttrgroupRelationEntity;
import com.guli.mall.pms.entity.AttrEntity;
import com.guli.mall.pms.entity.vo.AttrAttrgroupRelationVo;
import com.guli.mall.pms.entity.vo.AttrTipsVo;
import com.guli.mall.pms.entity.vo.AttrVo;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author 罗俊华
 * @email 1007052116@qq.com
 * @date 2020-09-17 11:37:22
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils<AttrAttrgroupRelationVo> queryPage(Integer currentPage, Integer size,AttrAttrgroupRelationEntity attrAttrgroupRelationEntity);

    AttrAttrgroupRelationEntity getAttrGroupRelationByAttrId(Long attrId);

    void updateByAttrId(AttrAttrgroupRelationEntity relation);

    PageUtils<AttrTipsVo> getAvailableBindingAttr(AttrAttrgroupRelationVo attrAttrgroupRelationVo, Integer currentPage, Integer size);

    List<Long> getAttrIdListByAttrGroupIdList(Long attrGroupId);
}

